/**
 * PwdCheck.java 
 * Copyright © 2015-3015, 杭州泊享网络科技有限公司
 * 
 * @author Liu Tao
 * @create 2013年10月21日
 */
package com.pshare.framework.annotation;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.ReportAsSingleViolation;

import com.pshare.constant.ReturnMsg;
import com.pshare.framework.validator.MoneyValidator;

/**
 * 金额格式化验证
 */
@Documented
@Constraint(validatedBy = MoneyValidator.class)
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
@ReportAsSingleViolation
public @interface MoneyCheck {
	
	String message() default ReturnMsg.WRONG_FORMAT_MONEY;

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
    
}
